package com.bjb.vr.common.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.bjb.vr.common.vo.ResDictionaryVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @TableName res_dictionary
 */
@TableName(value = "res_dictionary")
@Data
public class ResDictionary extends BaseModel implements Serializable {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 字典编码
     */
    @TableField(value = "dict_code")
    private String dictCode;

    /**
     * 字典名称
     */
    @TableField(value = "dict_name")
    private String dictName;

    /**
     * 字典类型 0:学科 1:主题类型 2：年级 3：语言 4：出版社 5:课程资源类型 6:教材资源类型 7:设备类型 8:学段
     */
    @TableField(value = "dict_type")
    private String dictType;

    /**
     * 排序序号
     */
    @TableField(value = "dict_order")
    private Integer dictOrder;

    /**
     * 父级ID
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 主题类型
     */
    @TableField(value = "theme_code")
    private String themeCode;

    /**
     * 字典状态（1启用 0不启用）
     */
    @TableField(value = "dict_status")
    private Integer dictStatus;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @TableField(value = "gmt_modified", fill = FieldFill.UPDATE)
    private LocalDateTime gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
